/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Pham
 */
public class DTOStatisticSold {
    int Proid;
    String ProName;
    int quantity;

    public int getProid() {
        return Proid;
    }

    public void setProid(int Proid) {
        this.Proid = Proid;
    }

    public String getProName() {
        return ProName;
    }

    public void setProName(String ProName) {
        this.ProName = ProName;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public DTOStatisticSold() {
    }
    
    public DTOStatisticSold(ResultSet rs) throws SQLException
    {
        this.Proid = rs.getInt("product_id");
        this.ProName = rs.getString("product_name");
        this.quantity = rs.getInt("quantity");
    }
}
